package me.ilich.piet.interpreter.commands;

import me.ilich.piet.interpreter.Stack.Context;

public abstract class UnaryRemoveCommand extends UnaryCommand {
	
	@Override
	protected void onUnary(Context context, int a, int size) {
		onRemoveUnary(context, a);
		context.getStackState().getData().remove(size-1);
	}
	
	protected abstract void onRemoveUnary(Context context, int a);

}
